package testJdk.base.modifier.bag01;

import testJdk.base.modifier.bag02.DefaultSon;
import testJdk.base.modifier.bag02.ProtectedSon;

/**
 * @Name : learn_jdk.xiushi.bag01.WebsocketTest
 * @Description : 描述
 * Created by cyd on 2021-06-17 11:22:15
 */
public class Test {
    public static void main(String[] args) {
        DefaultSon defaultSon = new DefaultSon();
        //defaultSon.printDefault(); 报错

        TestDefault testDefault = new TestDefault();
        testDefault.printDefault();

        TestProtected testProtected = new TestProtected();
        testProtected.print();
        ProtectedSon protectedSon = new ProtectedSon();
        protectedSon.print();
        System.out.println(protectedSon.name);
    }
}
